<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title></title>
    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width"/>
    <link href="/static/bower_components/angular-tablesort/tablesort.css" rel="stylesheet" />
    <link href="/static/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
{#    <link href="/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet"/>#}
    <link href="/static/lib/bootstrap-theme/Cerulean/fix.css" rel="stylesheet"/>
    <link href="/static/bower_components/select2/select2.css" rel="stylesheet"/>
    <link href="/static/css/select2-bootstrap.css" rel="stylesheet"/>
    <link href="/static/bower_components/angular-tablesort/tablesort.css" rel="stylesheet" sss/>
    <link href="/static/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/static/bower_components/angular-dialog-service/dialogs.css" rel="stylesheet"/>
    <link href="/static/bower_components/angular-busy/angular-busy.css" rel="stylesheet"/>
{# <link rel="stylesheet" href="/static/lib/angular-strap-2.0.0-rc.4/css/angular-motion.min.css"/>#}
{# <link rel="stylesheet" href="/static/lib/angular-strap-2.0.0-rc.4/css/bootstrap-additions.min.css"/>#}
{#    <link href="/static/bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet"/>#}
    <link href="/static/bootstrap3-editable-1.5.1/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet"/>
    <link href="/static/css/public.css" rel="stylesheet"/>
    <link href="/static/css/nav.css" rel="stylesheet"/>
</head>
<body ng-app="App">
<div ng-show="loading51" style="z-index: 10000; position: absolute; width: 100%; text-align: center; height: 100%; padding-top: 300px;">
<img title="Loading" src="/static/img/loading/loading51.gif">
</div>
<div class="ng-include:'/static/js/views/common/nav.html'"></div>
<div ui-view></div>
<div class="ng-include: '/static/js/views/common/footer.html'"></div>

<script type="text/javascript" src="/static/bower_components/jquery/dist/jquery.min.js"></script>
{#<script type="text/javascript" src="/static/bower_components/underscore/underscore-min.js"></script>#}
{#<script type="text/javascript" src="/static/bower_components/underscore.string/dist/underscore.string.min.js"></script>#}
{#<script type="text/javascript">_.mixin(_.str.exports());</script>#}
{#<script type="text/javascript" src="/static/bower_components/momentjs/min/moment.min.js"></script>#}
{##}
{#<script type="text/javascript" src="/static/bower_components/jquery-ui/ui/minified/jquery-ui.min.js"></script>#}
{##}
{#<script type="text/javascript" src="/static/bower_components/select2/select2.js"></script>#}
{##}
{#<script type="text/javascript" src="/static/bower_components/tinymce/tinymce.min.js"></script>#}
{#<script type="text/javascript" src="/static/bower_components/ng-file-upload/angular-file-upload-shim.min.js"></script>#}
<script type="text/javascript" src="/static/bower_components/angular/angular.js"></script>
{#<script type="text/javascript" src="/static/bower_components/ng-file-upload/angular-file-upload.min.js"></script>#}
{#<script type="text/javascript" src="/static/bower_components/angular-ui/angular-ui.min.js"></script>#}


<script type="text/javascript" src="/static/bower_components/angular-route/angular-route.js"></script>
<script type="text/javascript" src="/static/bower_components/angular-sanitize/angular-sanitize.js"></script>
<script type="text/javascript" src="/static/bower_components/angular-resource/angular-resource.js"></script>
<script type="text/javascript" src="/static/bower_components/angular-animate/angular-animate.js"></script>



<script type="text/javascript" src="/static/bower_components/angular-ui-utils/ui-utils.min.js"></script>
<script type="text/javascript" src="/static/bower_components/angular-ui-select2/src/select2.js"></script>
<script type="text/javascript" src="/static/bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script type="text/javascript" src="/static/bower_components/angular-ui-router/release/angular-ui-router.min.js"></script>
{#<script type="text/javascript" src="/static/lib/angular-strap-2.0.0-rc.4/dist/angular-strap.min.js"></script>#}
<script type="text/javascript" src="/static/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>

<script type="text/javascript" src="/static/bower_components/angular-xeditable/dist/js/xeditable.js"></script>
{#<script type="text/javascript" src="/static/bootstrap3-editable-1.5.1/bootstrap3-editable/js/bootstrap-editable.min.js"></script>#}

<!-- hightcharts -->
<script src="/static/bower_components/highcharts/highcharts-all.js"></script>
<script src="/static/bower_components/highcharts-ng/dist/highcharts-ng.js"></script>

<script src="/static/js/config.js" type="text/javascript"></script>
<script src="/static/js/app.js" type="text/javascript"></script>
<script src="/static/js/controllers/other.js" type="text/javascript"></script>
<script src="/static/js/controllers/vector.js" type="text/javascript"></script>
<!-- filters -->
<script src="/static/js/filters/filters.js" type="text/javascript"></script>
<!-- filter end -->
<!-- service -->
<script src="/static/js/services/services.js" type="text/javascript"></script>
<script type="text/javascript" src="/static/bower_components/angular-dialog-service/dialogs.min.js"></script>
<!-- service end -->
{% if user.is_authenticated %}
    <script type="text/javascript">
        App.run(function ($rootScope) {
            $rootScope.user = {
                id: {{ request.user.id }},
                username: '{{ request.user.username }}',
                perm: [],
                todo: []
            };
            {% if VB_DOMAIN %}
                $rootScope.VBDOMAIN = "{{ VB_DOMAIN }}";
            {% endif %}
            console.log('$rootScope', $rootScope);
        });
    </script>
{% else %}
    <script type="text/javascript">
        window.location = '/login/';
    </script>
{% endif %}
</body>
</html>